package ooday02;

public class ExtendsTest {
    public static void main(String[] args) {
        Student zs = new Student("张三",25,"杭州","001");

        zs.eat();
        zs.sleep();
        zs.study();
        zs.sayHi();

        Teacher ls = new Teacher("李四",30,"北京",3000.0);

        ls.eat();
        ls.sleep();
        ls.teach();
        ls.sayHi();

        Doctor ww = new Doctor("王五",50,"上海","1");

        ww.eat();
        ww.sleep();
        ww.cut();
    }
}
